public class Bank {
    public void getMoney(int out) throws BankException{
        if(out%100==0){
            System.out.println("取出"+out+"元");
        }else{
            throw new BankException("取钱只能是整数");
        }
    }
}